import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import router from '@/router';
import store from '@/store';
import api from './service'; // 引入 service

Vue.use(ElementUI);
Vue.use(api);
Vue.config.productionTip = false;

require("@/mock");
// // 开发模式行开启 mock
// if (process.env.NODE_ENV === "development") {
//   require("@/mock/index.js");
// }

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app');
